﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XWG.Framework.MSException;
namespace XWG.JWBST.JWBSTDAL
{
   /// <summary>
    /// 多事务多类型的事务处理
   /// </summary>
    public class Tran
    {
        #region 多事务多类型的事务处理

        //public static void TransOP(IList<object> oplist, IList<int> OPEnum)
        //{

        //    try
        //    {

        //        Db.TransOP<object,object>(oplist, OPEnum);
        //    }
        //    catch(Exception ex)
        //    {
        //        XWG.Framework.MSException.MSEx.DealErr(ex, "多事务处理异常。");
        //    }

        //}

        /// <summary>
        /// TransOP
        /// </summary>
        /// <param name="IsSucceed">IsSucceed</param>
        /// <param name="oplist">oplist</param>
        /// <param name="OPEnum">OPEnum</param>
        public static void TransOP(ref bool IsSucceed, IList<object> oplist, IList<int> OPEnum)
        {

            try
            {

                Db.TransOP<object, object>(ref IsSucceed, oplist, OPEnum);
            }
            catch (Exception ex)
            {
                XWG.Framework.MSException.MSEx.DealErr(ex, "多事务处理异常。");
            }

        }

 
        #endregion
    }
}
